﻿using Jinjia.Approve.IService.Base;
using Jinjia.Approve.Model;
using System.Collections.Generic;
using System.Threading.Tasks;
using Jinjia.Approve.Model.Input;
using Jinjia.Approve.Model.VM.JJFlow;
using Jinjia.Approve.Entity.Entity.JJFlow;

namespace Jinjia.Approve.IService
{
    public interface IJJFlowCommentService: IBaseService
    {
        Task<int> Save(JJFlowCommentVM data);

        Task UpdateIsAppend(string biz_order_id, string modular_key);

        /// <summary>
        /// 获取“查阅日志”列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<List<JJFlowCommentVM>> GetJJFlowComments(JJFlowCommentSearchInput input);

        /// <summary>
        /// 新增（评论& 文件信息）
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<int> SaveComment(JJFlowCommentCreateInput input);

        /// <summary>
        /// 写入评论
        /// </summary>
        /// <param name="jjFlowTrack"></param>
        /// <returns></returns>
        Task SaveComment(jj_flow_track jjFlowTrack);
    }
}